home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / NETPROG.ZIP;1 / NETPROG.TAR / ipc / mesg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-17  |  513 b   |  19 lines

  1. /*
  2.  * Definition of "our" message.
  3.  *
  4.  * You may have to change the 4096 to a smaller value, if message queues
  5.  * on your system were configured with "msgmax" less than 4096.
  6.  */
  7.  
  8. #define    MAXMESGDATA    (4096-16)
  9.                 /* we don't want sizeof(Mesg) > 4096 */
  10.  
  11. #define    MESGHDRSIZE    (sizeof(Mesg) - MAXMESGDATA)
  12.                 /* length of mesg_len and mesg_type */
  13.  
  14. typedef struct {
  15.   int    mesg_len;    /* #bytes in mesg_data, can be 0 or > 0 */
  16.   long    mesg_type;    /* message type, must be > 0 */
  17.   char    mesg_data[MAXMESGDATA];
  18. } Mesg;
  19.